package com.blog.service;

import com.blog.entity.BlogManager;
import com.blog.utils.BusinessException;

import java.util.List;

/**
 * @Author Huangzp
 * @Date 2022/1/10 14:50
 */
public interface ManagerService {
    List<BlogManager> getManagerByPage(BlogManager manager);

    void delManager(List<Integer> ids)throws BusinessException;

    void stopManager(List<Integer> ids, int key)throws BusinessException;

    BlogManager saveManager(BlogManager manager)throws BusinessException ;

    /**
     * 通过用户名查询
     * @param userName
     * @return
     */
    BlogManager findByName(String userName)throws BusinessException;

    BlogManager updateManager(BlogManager manager);

    void sendOutEmail(String username) throws BusinessException;
}
